home *** CD-ROM | disk | FTP | other *** search
/ Delphi 2 - Developers' Solutions / Delphi 2 Developers' Solutions.iso / dds / comps / gadgets / delphi10 / gifbitmp / gifbptst.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1996-06-18  |  794 b   |  39 lines

  1. unit Gifbptst;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, Ulbitmap, Gifbitmp;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     GIFBitmap1: TGIFBitmap;
  12.     procedure FormCreate(Sender: TObject);
  13.     procedure FormPaint(Sender: TObject);
  14.   private
  15.     { Private declarations }
  16.   public
  17.     { Public declarations }
  18.   end;
  19.  
  20. var
  21.   Form1: TForm1;
  22. implementation
  23.  
  24. {$R *.DFM}
  25.  
  26. procedure TForm1.FormCreate(Sender: TObject);
  27. begin
  28.   GIFBitmap1.Load_GIF_File;
  29. end;
  30.  
  31. procedure TForm1.FormPaint(Sender: TObject);
  32. begin
  33.   canvas.copyrect( rect( 0 , 0 , GIFBitmap1.TheBMP.Width ,
  34.    GIFBitmap1.TheBMP.Height ) , GIFBitmap1.TheBMP.Canvas ,
  35.     rect( 0 , 0 , GIFBitmap1.TheBMP.Width , GIFBitmap1.TheBMP.Height ));
  36. end;
  37.  
  38. end.
  39.